#include<iostream>
#include<conio.h>
#include"Time.h"
using namespace std;
int main()
{
	Time t1(23, 59, 59);
	t1.printf();
	t1.setHour(12);
	t1.setMinute(30);
	t1.setSecond(15);
	t1.printf();
	cout << "Hour is" << t1.getHour() << endl;
	cout << "Minute is" << t1.getMinute() << endl;
	cout << "Second is" << t1.getSecond() << endl;
	Time t2;
	t2.printf();
	t2.setTime(1, 2, 3);
	t2.printf();
	Time t3 (12);
	t3.printf();
	Time t4(23, 59, 58);
	t4.printf();
	t4.nextSecond();
	t4.printf();
	t4.nextSecond();
	t4.printf();
	Time t5(25, 61, 99);
	t5.printf();
	_getch();
}